package com.lengxf.aPlugins.bizType.model;

import com.lengxf.aPlugins.bizType.BizInterface;
import com.lengxf.aPlugins.bizType.GroupSubTypeEnum;
import com.lengxf.aPlugins.bizType.GroupTypeEnum;
import com.lengxf.aPlugins.bizType.InteractionModel;

import java.util.List;

/**
 * 节拍
 */
public class PointBeat implements BizInterface {

    @Override
    public List<InteractionModel> getInteractionModelList() {
        return List.of(
                readData(),
                request()
        );
    }

    //读取参数
    public static InteractionModel readData() {
        List<String> list = List.of(
                "VIN",
                "CT",
                "bodytype",
                "bodyno"
        );
        return new InteractionModel(GroupTypeEnum.READ, GroupSubTypeEnum.DATA, list);
    }

    //请求监听参数
    public static InteractionModel request() {
        List<String> list = List.of("flag");
        return new InteractionModel(GroupTypeEnum.SUBSCRIPTION, GroupSubTypeEnum.REQUEST, list);
    }


}
